package com.ruoyi.contract.service.scheduled;

import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @program: Smart-contract-management-system-replica-system
 * @description: 配置信息类
 * @author: coderChen
 * @create: 2024-10-24 15:47
 **/
@Service
public class ReminderConfiguration {
    //合同到期提醒
    private String contractRemind;
    //到期应付款提醒
    private String paymentRemind;
    //到期应收款提醒
    private String collectionRemind;
    // 提前7天提醒配置
    private Map<String, String> sevenAlarmTimeMap = new HashMap<>();
    // 提前30天提醒配置
    private Map<String, String> thirtyAlarmTimeMap = new HashMap<>();

    public String getContractRemind() {
        return contractRemind;
    }

    public void setContractRemind(String contractRemind) {
        this.contractRemind = contractRemind;
    }

    public String getPaymentRemind() {
        return paymentRemind;
    }

    public void setPaymentRemind(String paymentRemind) {
        this.paymentRemind = paymentRemind;
    }

    public String getCollectionRemind() {
        return collectionRemind;
    }

    public void setCollectionRemind(String collectionRemind) {
        this.collectionRemind = collectionRemind;
    }
    public void setSevenAlarmTime(String type, String time) {
        sevenAlarmTimeMap.put(type, time);
    }

    public void setThirtyAlarmTime(String type, String time) {
        thirtyAlarmTimeMap.put(type, time);
    }

    public Map<String, String> getSevenAlarmTimeMap() {
        return sevenAlarmTimeMap;
    }

    public Map<String, String> getThirtyAlarmTimeMap() {
        return thirtyAlarmTimeMap;
    }
    @Override
    public String toString() {
        return "ReminderConfiguration{" +
                "contractRemind='" + contractRemind + '\'' +
                ", paymentRemind='" + paymentRemind + '\'' +
                ", collectionRemind='" + collectionRemind + '\'' +
                ", sevenAlarmTimeMap=" + sevenAlarmTimeMap +
                ", thirtyAlarmTimeMap=" + thirtyAlarmTimeMap +
                '}';
    }
}
